package Com.amit.Exception;

import java.io.IOException;

public class Lab18 {

	public void m1() throws IOException
	{
		throw new IOException("device error");
	}

	public static void main(String[] args) {
		
		try
		{
			Lab18 l=new Lab18();
			l.m1();
		}
		
		catch (Exception e) {
			
			System.out.println("Handled");
			
		}
		
		System.out.println("Rest code");

	}

}
